package com.engine4cloud.tdf.supervision.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 证件号唯一性-校验对象
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "证件号唯一性-校验对象")
public class MobileUniqueCheckDTO implements Serializable {
    /**
     * 主键
     */
    @Schema(description = "主键-新增的时候主键为空，编辑的时候主键不能为空", example = "10202022002020")
    private Long id;

    /**
     * 证件号
     */
    @Schema(description = "手机号", example = "177********")
    @NotEmpty(message = "手机号不能为空")
    private String mobile;

    public MobileUniqueCheckDTO(String mobile) {
        this.mobile = mobile;
    }
}
